function getSomething(){
    return 'something';
}

async function testAsync(){
    return 'async method';
}

async function test(){
    const v1 = await getSomething();
    const v2 = await testAsync();

    console.log(v1,v2);
}
test();


function takeLongTime(){
    return new Promise(resolve => {
        setTimeout(() => {
            resolve("long_time_value")
        }, 5000);
    })
}

async function testA(){
    const v= await takeLongTime();
    console.log(v);
}

testA();

//是不是这样
//好像没什么特别的